<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="/web/header.jsp"%>
<title>主页</title>
</head>
<body class="layui-layout-body">
	<div class="layui-layout layui-layout-admin">
		<div class="layui-header">
			<div class="layui-logo">企业绩效管理系统</div>
			<ul class="layui-nav layui-layout-left">
			</ul>
			<ul class="layui-nav layui-layout-right">
				<li class="layui-nav-item">
					<a href="javascript:;">用户 </a>
					<dl class="layui-nav-child">
						<dd>
							<a href="javascript:openUser()">基本资料</a>
						</dd>
						<dd>
							<a href="javascript:openPass()">修改密码</a>
						</dd>
						<dd>
							<a href="javascript:openPic()">修改头像</a>
						</dd>
					</dl>
				</li>
				<li class="layui-nav-item">
					<a href="javascript:goLogout()">注销</a>
				</li>
			</ul>
		</div>

		<div class="layui-side layui-bg-black">
			<div class="layui-side-scroll">
				<ul class="layui-nav layui-nav-tree">
					<li class="layui-nav-item layui-nav-itemed">
						<a href="javascript:;">信息维护</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="javascript:openURL('/web/page/employee/list.jsp');">员工信息维护</a>
							</dd>
							<dd>
								<a href="javascript:openURL('/web/page/department/list.jsp');">部门信息维护</a>
							</dd>
							<dd>
								<a href="javascript:openURL('/web/page/projects/list.jsp');">项目信息维护</a>
							</dd>
							<dd>
								<a href="javascript:openURL('/web/page/performance/list.jsp');">绩效信息维护</a>
							</dd>
						</dl>
					</li>
					<li class="layui-nav-item">
						<a href="javascript:;">基础配置</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="javascript:;" class="site-demo-active" data-url="web/page/demo.jsp">基础数据维护</a>
							</dd>
							<dd>
								<a href="javascript:openURL('web/page/demo.jsp')" class="site-demo-active">其他</a>
							</dd>
							<dd>
								<a href="javascript:openURL('web/page/demo.jsp')" class="site-demo-active">其他</a>
							</dd>
						</dl>
					</li>
				</ul>
			</div>
		</div>


		<div class="layui-body">
			<iframe name="rightframe" width="99%" height="97%"></iframe>
		</div>
		<div class="layui-footer">底部固定</div>

		<script type="text/javaScript">
			element.render();//必须渲染
			function goLogout() {
				$.ajax({
					url : "/work/EmployeeServlet",
					data : {
						action : "goLogout",
					},
					type : "post",
					dataType : "text",
					success : function(data) {
					}
				})
				goJspLogin();	
			}
			function openURL(url) {
				window.open(base.app + url, "rightframe");
			}
			/* 	$('.site-demo-active').click(function() {
					window.open(base.app + $(this).data('url'), "rightframe")
				});
				$('site-demo-active:first').click(); */
		</script>
</body>
</html>